quiz = 199999995.99999
p quiz.to_s.reverse.gsub(/\d{3}/){|match| ($`.include?(".")) ? match + "," : match}.reverse.sub(/^,/, "")

quiz = [1, [2, [3]]]
p quiz.inject([]){|array, obj| (obj.kind_of?(Array)) ? array + obj : array << obj}

quiz = ("a".."z").to_a
p quiz.sort_by{rand}

quiz = "File::Constants"
p eval(quiz)

quiz = File.new("world_cup.rb", "r")
p (file = quiz.readlines)[rand(file.size)]

quiz = 15
quiz = [quiz]; quiz << ((quiz.last % 2 == 0) ? quiz.last / 2 : (quiz.last * 3) + 1) until quiz.last == 1;
p quiz

quiz = %w(one two three four five);
p quiz.reverse.inject{|hash, obj| {obj => hash}}
